<?php

// Include
include_once('include/header.php');
include_once('plugin/EmpresaDBPlugin.php');
include_once('plugin/FotosDBPlugin.php');

// Ejecucion
$text = EmpresaDBPlugin::getLaEmpresa();

$results = FotosDBPlugin::getFotos();
$fotos = array();
while($foto = mysql_fetch_assoc($results)) {
	$fotos[] = $foto;
}

// Smarty call
$smarty->assign('text', $text);
$smarty->assign('fotos', $fotos);
$smarty->assign('option', basename($_SERVER['PHP_SELF']));
$smarty->display('index.tpl');

?>